package com.ruoyi.project.mgcmanage.mapper;

import com.ruoyi.project.mgcmanage.domain.Supplier;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SupplierMapper {

    //查询所有供应商
    List<Supplier> selectAll(Supplier supplier);

    //添加供应商
    int insert(Supplier supplier);

    //数据回显
    Supplier selectOne(int sid);

    //修改供应商
    int update(Supplier supplier);

    //删除供应商
    int delete(int[] sids);

    //查询所有供应商名称
    List<Supplier> selectByNames();
}
